<?php
/**
 * @author Micheal Luthor
 */
X::import('Application.Modles.Command');

class CUser extends Command  {	
	/**
	 * @param string $paramString
	 * @return CUser
	 */
	public function parserParamString($paramString){
		$this->arguments[0] = trim($paramString);
		
		return $this;
	}
	
	/**
	 * @return CUser
	 */
	public function run(){
		X::app()->user->setAccount($this->arguments[0]);
		X::app()->user->setStatus(XUser::STATUS_OFFLINE);
		
		return $this;
	}
}